Table item information extraction with continuous machine learning through local and global models

ABSTRACT

A bipartite application implements a table auto-completion (TAC) algorithm on the client side and the server side. A client module runs a local model of the TAC algorithm on a user device and a server module runs a global model of the TAC algorithm on a server machine. The local model is continuously adapted through on-the-fly training, with as few as a negative example, to perform TAC on the client side, one document at a time. Knowledge thus learned by the local model is used to improve the global model on the server side. The global model can be utilized to automatically and intelligently extract table information from a large number of documents with significantly improved accuracy, requiring minimal human intervention even on complex tables.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a continuation of, and claims a benefit of priority under 35U.S.C. § 120 from, U.S. patent application Ser. No. 15/964,654, filedApr. 27, 2018, entitled “TABLE ITEM INFORMATION EXTRACTION WITHCONTINUOUS MACHINE LEARNING THROUGH LOCAL AND GLOBAL MODELS,” which isfully incorporated by reference herein for all purposes.

TECHNICAL FIELD

This disclosure relates generally to image analysis and featureextraction. More particularly, this disclosure relates to table iteminformation extraction systems and methods with continuous machinelearning through local and global models, useful for automatically,efficiently, and accurately acquiring table data from massive amounts ofdocuments in an enterprise computing environment with minimal humanintervention.

BACKGROUND OF THE RELATED ART

Image analysis and feature extraction technologies have come a long way.U.S. Pat. No. 8,270,721 describes a variety of methods and systems foracquiring data from machine-readable documents and provides a newsolution for acquiring table data from machine-readable documents. InU.S. Pat. No. 8,270,721, individual data are extracted from a document,as automatically as possible, and are entered into correspondingdatabase fields. When data cannot be extracted from the document with adesired degree of reliability for particular database fields, thedocument is displayed with the database fields for which the data cannotbe extracted. A proposal routine is executed so that string sections, ina vicinity of a pointer movable by a user on the display screen, areselected, marked, and proposed for extraction. In this way, the user isinformed of the database field for which the data must still beextracted from the document shown on the display screen and can thentransfer or incorporate the proposed string section into the databasefield merely by actuating a particular key. Through the automaticselecting and marking of the string section, the process ofincorporating the still-missing data is significantly simplified andaccelerated.

SUMMARY OF THE DISCLOSURE

An object of the invention is to provide innovations and improvements toimage analysis and feature extraction technologies in enterprisecomputing environments. Another object of the invention is to learn,on-the-fly, from initial minimal user feedback (e.g., a line or twoextracted from a table and corrected by a user) and be able to leveragethe learned knowledge to automatically complete the rest of the tableextraction, while continuously self-adapting to improve performance. Yetanother object of the invention is to combine local learning (on theuser side) and global learning (on the server side) and be able toleverage the combined knowledge to automatically, or substantiallyautomatically, extract table item information from massive amounts ofdocuments.

To realize these and other objects, the invention provides table iteminformation extraction systems and methods with continuous machinelearning through local and global models. In some embodiments, a methodof the invention can include displaying a database table and an image ona user device through a user interface of a bipartite application. Thedatabase table can have a plurality of columns. The number of columnscan be customized using the user interface. The image can be a scannedimage of a document containing a table. The table can contain coded textgenerated by an optical character recognition (OCR) function in a mannerknown to those skilled in the art.

The bipartite application has two parts—a client module implemented onthe user device and a server module implemented on a server machineoperating in a backend of an enterprise computing environment. Theclient module includes a local model of a table auto-completionalgorithm and the server module includes a global model of the tableauto-completion algorithm. The user interface includes a user interfaceelement associated with the table auto-completion algorithm.

Responsive to a user selecting the user interface element displayed onthe user device, the client module running the local model of the tableauto-completion algorithm is operable to analyze a portion of the tablehighlighted by the user on the user interface, the portion of the tablehighlighted by the user on the user interface defining initialcoordinates on the user interface; determine a data point for eachcolumn of the database table using the initial coordinates;automatically extract data points thus determined from the table; enterthe data points automatically extracted from the table into theplurality of columns of the database table; and store information aboutthe data points in the local model as positive examples.

The method may further include determining, by the client module runningthe local model of the table auto-completion algorithm utilizing thepositive examples in the local model, a plurality of additional datapoints in the table; automatically extracting the plurality ofadditional data points from the table; and entering the plurality ofadditional data points extracted from the table into the plurality ofcolumns of the database table. In some embodiments, the local modelincludes a plurality of models, including a cell model definingproperties of cells of a given column, a line model defining a number ofcells per line and transition there-between, and a document modeldefining line distances and a number of lines per document. In someembodiments, the global model of the table auto-completion algorithm issimilarly defined. In some embodiments, the plurality of additional datapoints is automatically extracted from the table utilizing the cellmodel, the line model, and the document model. In some embodiments,these models encompass elements that describe a layout of a document ofa certain document type, including an orientation of the document.

Once entered, the user can view the plurality of additional data pointsautomatically extracted from the table through the plurality of columnsof the database table displayed on the user interface on the userdevice. The plurality of columns of the database table displayed on theuser interface on the user device is manually editable. Thus, if anautomatically extracted and entered data point in the plurality ofcolumns of the database table displayed on the user interface on theuser device is incorrect, the user can provide a correction through theuser interface.

Accordingly, the method may further include receiving a correction to adata point of the plurality of additional data points automaticallyextracted from the table; and correcting the local model to learn fromthe correction to the data point and include the data point in the localmodel as a negative example. For instance, perhaps the number of cellsper line and/or transition there-between was incorrect, or perhaps aline distance was incorrect. The correction from the user is used by theclient module to fine-tune the local model where applicable and theincorrect information is kept by the local model as a negative example.

At this time, the local model has some positive examples from theinitial user input (e.g., the initial coordinates determined from aportion of the table highlighted by the user on the user interface) andone negative example (e.g., the number of cells per line is not 4). Forsome tables, this kind of on-the-fly training with a few positive andnegative examples is all the local model needs to complete the rest ofthe table extraction automatically (referred to as table auto-completionor TAC). The amount of on-the-fly training of the local model (bypositive and negative examples) can vary depending upon the complexityof a table. As an example, a complex table can have a plurality ofitems, each item containing multiple lines or rows. Due to thesemi-structured nature of such a table, the number of lines may varythroughout the table, making it extremely difficult for a machine toread out table data correctly. Further complicating the matter is thatsometimes only one or two pieces of information (features) from eachitem would be needed for extraction. Accordingly, the more complex atable, the more training of the local model may be needed in order forthe local model to perform TAC accurately.

Because the local model can learn from each mistake (as a negativeexample), the performance of the local model (e.g., TAC accuracy) can beimproved with each correction. That is, the client module cancontinuously adapt the local model to learn, on-the-fly, by positive andnegative examples and automatically continuously extract tableinformation from the table utilizing the positive and negative examplesuntil extraction of the table information from the table isautomatically completed. The learned knowledge gained by the local modelfrom the on-the-fly training with respect to a certain document type(which has a particular layout associated therewith) can be leveraged toimprove the overall performance of the table auto-completion algorithm.

For example, in some embodiments, the local model thus trained can becommunicated to the backend and used by the server module to update theglobal model of the table auto-completion algorithm. Generally, theglobal model is trained on previously processed documents. The learnedknowledge gained by the local model from the on-the-fly training withrespect to a certain document type (which has a particular layoutassociated therewith) can further improve the global model and increasethe performance of the global model in TAC accuracy (without needing ahuman to train the global model by positive and negative examples.

In this way, the server module executing on the server machine canleverage the learned knowledge from the local model in performing tableextraction with respect to a particular document type to improve theglobal model accordingly and utilize the improved global model toperform automatic extraction of table information from a mass amount(e.g., hundreds, thousands, and tens of thousands, etc.) of documents ofthe same document type and automatically enter the table informationthus extracted from the documents into database fields.

One embodiment comprises a system comprising at least one processor andat least one non-transitory computer-readable storage medium that storescomputer instructions translatable by the processor to perform a methodsubstantially as described herein. Another embodiment comprises acomputer program product having at least one non-transitorycomputer-readable storage medium that stores computer instructionstranslatable by at least one processor to perform a method substantiallyas described herein. Numerous other embodiments are also possible.

These, and other, aspects of the disclosure will be better appreciatedand understood when considered in conjunction with the followingdescription and the accompanying drawings. It should be understood,however, that the following description, while indicating variousembodiments of the disclosure and numerous specific details thereof, isgiven by way of illustration and not of limitation. Many substitutions,modifications, additions and/or rearrangements may be made within thescope of the disclosure without departing from the spirit thereof, andthe disclosure includes all such substitutions, modifications, additionsand/or rearrangements.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings accompanying and forming part of this specification areincluded to depict certain aspects of the invention. A clearerimpression of the invention, and of the components and operation ofsystems provided with the invention, will become more readily apparentby referring to the exemplary, and therefore non-limiting, embodimentsillustrated in the drawings, wherein identical reference numeralsdesignate the same components. The features illustrated in the drawingsare not necessarily drawn to scale.

FIG. 1 depicts a diagrammatic representation of a network computingenvironment where embodiments disclosed herein can be implemented.

FIG. 2 depicts a diagrammatic representation of a bipartite applicationimplementing a table auto-completion algorithm on the client side andthe server side according to some embodiments.

FIG. 3 is a flow chart illustrating an example of a method for traininga local model with positive examples according to some embodiments.

FIG. 4 is a flow chart illustrating an example of a method for traininga local model with a negative example according to some embodiments.

FIGS. 5A-5F depict diagrammatic representations of a user interface of abipartite application implementing a table auto-completion algorithm,illustrating an example of on-the-fly training of a local model of thetable auto-completion algorithm according to some embodiments.

FIGS. 6A-6B depict diagrammatic representations of a user interface of abipartite application implementing a table auto-completion algorithm,illustrating an example of automatic extraction of table iteminformation by the table auto-completion algorithm utilizing a trainedlocal model according to some embodiments.

FIGS. 7A-7B depict diagrammatic representations of a user interface of abipartite application, illustrating an example of setting up captureparameters used by the bipartite application according to someembodiments.

FIG. 8 depicts a diagrammatic representation of an example of anenterprise computing environment where embodiments disclosed can beimplemented.

DETAILED DESCRIPTION

The invention and the various features and advantageous details thereofare explained more fully with reference to the non-limiting embodimentsthat are illustrated in the accompanying drawings and detailed in thefollowing description. Descriptions of well-known starting materials,processing techniques, components, and equipment are omitted so as notto unnecessarily obscure the invention in detail. It should beunderstood, however, that the detailed description and the specificexamples, while indicating some embodiments of the invention, are givenby way of illustration only and not by way of limitation. Varioussubstitutions, modifications, additions, and/or rearrangements withinthe spirit and/or scope of the underlying inventive concept will becomeapparent to those skilled in the art from this disclosure.

As described above, image analysis and feature extraction technologieshave come a long way. However, as noted in U.S. Pat. No. 8,270,721, withprior methods and systems, it is not always possible automatically fillall database fields of a database reliably with data extracted fromdocuments. There could be many causes for the difficulty in implementingautomated data extraction with high accuracy and completeness. Forexample, as illustrated in FIG. 1, documents 101 may be received fromdisparate sources 110. Documents 101 themselves may be of aheterogeneous nature, with different formats, layouts, types, and/orcontents. Further, a variety of applications 120 running on disparatesources 110 may handle documents 101 differently and have differentrequirements on what kind of documents and/or network communicationsprotocols they support (e.g., via emails, web applications, applicationprogramming interface calls, etc.). Sometimes documents 101 can be sodifferent and unlike one another that they cannot be compared by dataextraction machines automatically.

Embodiments disclosed herein can improve image analysis and featureextraction so that automated data extraction can be performed on massiveamounts of documents in enterprise computing environments with highaccuracy and completeness. FIG. 1 depicts a diagrammatic representationof a network computing environment 100 where embodiments disclosedherein can be implemented.

As illustrated in FIG. 1, heterogeneous documents 101 may be received,through applications 120 running on disparate sources 110, by a documentrecognition and data processing platform referred to as capture center170. OpenText™ Capture Center, available from Open Text, headquarteredin Canada, is an example of a computing platform that can implementcapture center 170.

Capture center 170 may include a plurality of subsystems (e.g.,subsystems 130, 140, 150, 160) configured for providing advanceddocument and character recognition capabilities for processing documents101 into machine-readable information that can be stored in a data store145 and used by any subsequent computing facility, represented by anenterprise server 180 in FIG. 1. Non-limiting examples of subsequentcomputing facilities can include, but are not limited to, contentservers, archive servers, case management systems, customer relationmanagement systems, record management systems, invoice managementsystems, etc.

Generally, subsystem 130 is configured for collecting or receivingdocuments 101 from disparate sources 110 (e.g., through softwareapplications 120). Documents 101 can include invoices, purchase orders,debit notes, credit notes, delivery notes, and so on. Where applicable(e.g., when documents received are actually scanned images), subsystem130 can separate or split a batch of images into individual (e.g.,multi-page) documents. When documents 101 do not already contain codedtext, subsystem 130 can run an OCR function to transform pixels intocharacters (coded text).

Subsystem 140 is configured for classifying these documents. Theclassification may entail examining a document and determining adocument type (e.g., .invoice, .delivery note, .order, .other, etc.) forthe document. Each document type may be characterized by a set offeatures (e.g., a number of lines per document, line distances, a numberof cells per line, transition between cells on the same line, properties(e.g., size, content, alignment, etc., each with typical average andvariance) of cells in a column, and so on.

Subsystem 150 is configured for extracting data from the documents thusclassified. The data exaction, which may be performed depending upon thedocument type, may entail searching for certain features in a documentthat correspond to the document type. For example, if a document isclassified as an invoice type and the invoice type is associated with aset of features such as date, amount, order number, and supplier,subsystem 150 may operate to search the document for date, amount, ordernumber, and supplier and extract these features from the document.

Subsystem 160 is configured to interpret the extracted features andstore the results (e.g., extracted data with enhanced contextualinformation) in data store 145 which, in some embodiments, can contain adatabase accessible by enterprise server 180. The interpretation bysubsystem 160 can include data manipulation and transformation. As anon-limiting example, suppose the date feature extracted from thedocument is textual information in the form of “Month Day, Year” (e.g.,“Apr. 20, 2018”). Subsystem 160 can transform this textual informationinto a numerical form (e.g., “04202018”). As another example, supposethe supplier feature extracted from the document is textual informationbearing the actual name of a supplier. Subsystem 160 can search asupplier database, find a supplier identifier associated with that name,and store the supplier identifier in data store 145 as part of theextracted data.

In some embodiments, subsystem 150 includes a new table auto-completioncapability. In some embodiments, the new table auto-completioncapability can be implemented as a function accessible by a user througha user interface 112 of an enterprise application 120 that functions asclient software of capture center 170. As discussed below, the new tableauto-completion capability implements adaptive (learning) technology sothat subsystem 150 can continuously self-adapt to improve performance(e.g., data extraction accuracy, completeness, speed, etc.).

In some embodiments, the new table auto-completion capability isrealized in a table auto-completion algorithm implemented in a bipartiteapplication that has two parts, one on the client side and one on theserver side. As illustrated in FIG. 2, bipartite application 200 mayinclude a client module 252 on the client side and a server module 254on the server side. Through bipartite application 200, the tableauto-completion algorithm is operable to collect all the information(local or global) in a table model which becomes more and more precisewith each piece of incoming information. The table model is alsobipartite, with a local model for the client side and a global model forthe server side. The table model is constructed per document type. Sincesubsystem 150 is configured for performing data extraction on multipledocument types, there can be multiple table models corresponding to themultiple document types.

In some embodiments, client module 252 runs a local model 262 of thetable model on a user device 210. When the local model first encountersa document having a particular document type, it may have a basic ordefault hypothesis about the document. As discussed above, a documenttype can be characterized by a set of features. To model the set offeatures, the local model includes a cell model, a line model, and adocument model. The cell model may define various properties of cells ofa given column (e.g., size, content, alignment, and so on, each withtypical average and variance). The line model may define a number ofcells per line and transition (vector) between the cells of a givenline. The document model may define typical line distances and a numberof lines per document. Skilled artisans appreciate that the cell, line,and document models may vary from document type to document type, aswell as from implementation to implementation, depending on the needs ofindividual use cases. The default or initial values of featuresdescribed by the cell, line, and document models represent the localmodel's basic or default hypothesis about a document type.

This hypothesis can be continuously adapted through learning,on-the-fly, from minimal user feedback (e.g., a line or two extractedfrom a table and corrected by a user) while the local model is utilizedby the client module to perform table extraction on the document. Forexample, the basic hypothesis may be four lines and four column for eachitem. A user correction may cause the hypothesis to change the number oflines to seven. The client module (which runs on a machine such as theuser device) is given knowledge of what to look for (e.g., a referencenumber, a part number, an amount, etc., through a previously definedscenario). Leveraging the knowledge learned from the user feedback, theclient module is operable to update the local model, extract data fromthe table utilizing the local model, and automatically fill all databasefields of a database with data extracted from the table.

Previously, while manual correction is possible, the knowledge thatcould be gained from that correction on the client side would be lost ondata extraction servers running on the server side. In this case,however, that knowledge is retained first in the local model and laterin the global model. As the local model is updated, the hypothesisevolves. When table extraction on the document is completed, the clientmodule may communicate the local model updated thus far on the clientside to the server module which can then use the knowledge contained inthe updated local model to update or otherwise improve the global modelon the server side.

As illustrated in FIG. 2, local model 262 and global model 264 can besimilarly defined, each having a cell model, a line model, and adocument model. While not shown in FIG. 2, in some embodiments, globalmodels on the server side could have a hierarchical structure, with aglobal root model for each enterprise application (e.g., knowledge oftypical columns required by that enterprise application) and specificsub-models (e.g., a cell model, a line model, a document model, etc.)for each of a plurality of layouts supported by the correspondingenterprise application. That is, a layout (also referred to as a layouttemplate) in the global model may be structured into a hierarchy like atree.

These global models are trained (using previously processed documents)and utilized by server module 254 for extracting data of interest (e.g.,table item information) from a huge number of documents, often in thehundreds, thousands, or more. Outputs (extracted data) from servermodule 254 can be stored in a data store 245 (which can be an embodimentof data store 145 described above) or interpreted (e.g., by subsystem160 described above) and then stored in data store 245.

As skilled artisans can appreciate, enterprise documents such asinvoices, delivery notes, remittances, etc. typically contain largeand/or complex tables. Such a document can contain many different itemsof interest (features for extraction). However, even though a documentmay contain what looks like a table to human eyes, it is not a tablestructure that can be read by machines. From a logical perspective, thisdocument (or an image thereof) can be treated like a table extraction sothat a machine can view the document as a table and perform an itemextraction using the table auto-completion algorithm with continuous andself-adaptive machine learning.

Skilled artisans appreciate that there are many types of machinelearning. In this disclosure, a machine can learn, on-the-fly, frompositive and negative examples. This is referred to as active learningor adaptive learning, which is part of semi-supervised machine learningin which a learning algorithm is able to interactive with a user toobtain desired outputs at new data points. In this case, the tableauto-completion algorithm is able to interactively obtain a user'scorrection to an automatically extracted data point and store theincorrect data point in the local model as a negative example.

The training of the machine (which runs the client module including thelocal model) to recognize a new table layout (of a detected documenttype or a new document type having a new table layout) can begin, fromscratch, with some positive examples provided by a user. FIG. 3 is aflow chart illustrating an example of a method 300 for training a localmodel with positive examples. In some embodiments, method 300 maycomprise displaying a database table and an image on a user devicethrough a user interface of a bipartite application (e.g., bipartiteapplication 200) (301). An example of the user interface is shown inFIG. 5A.

FIG. 5A depicts a diagrammatic representation of a user interface 500 ofan application 520 (which can represent a client module of a bipartiteapplication described above) implementing a table auto-completionalgorithm (which can be activated or invoked through a user interfaceelement 550, referred to herein as TAC 550), showing an example of adatabase table 510 and an example of a document image 530. Databasetable 510 may have a plurality of columns (e.g., columns 522, 524)having a plurality of database fields (e.g., database fields 526, 528).The number of columns can be customized using a layout configurationfunction 525 of user interface 500. The number of database fields candepend on the number of lines in document image 530. Document image 530can be a scanned image of a document containing a table 535. Asdiscussed above, this table does not have a table structure that can beread by machines. Rather, table 535 may contain coded text generated byan optical character recognition (OCR) function in a manner known tothose skilled in the art.

As illustrated in FIG. 5B, a user can highlight a portion 560 of table535 on the user interface to define the initial coordinates. The usermay select TAC 550, which activates the table auto-completion algorithm.Responsively, the client module running the local model of the tableauto-completion algorithm is operable to analyze portion 560 of table535 highlighted by the user on user interface 500 (305) and determine,based on the initial coordinates defined by the user, that data points562, 564 should be extracted (310). The client module is furtheroperable to extract data points 562, 564 from table 535 and enter datapoints 562, 564 into database fields 526, 528 (315), as shown in FIG.5B.

Since the initial coordinates are user-defined, data points determinedusing these initial coordinates can provide positive information fromwhich a machine (referring to the machine that runs the client moduleincluding the local model) can learn. From the perspective of a machineimplementing the table auto-completion algorithm, a table structurecontains data that are structured in two dimensions (e.g., columns androws), with each column sharing objects or items of the same or similartype (e.g., date, amount, supplier, etc.). Thus, in this case, themachine can learn what columns are (e.g., columns 522, 524), what theycontain (e.g., data points 562, 564 in database fields 526, 528), whattype of values (e.g., numbers, alphanumeric values, sizes, etc.), therelationships among the extracted data points, and so on. The pieces ofinformation thus learned can be stored in the local model as positiveexamples (320).

After the initial extraction (based on the initial coordinates definedby the user), the user can run TAC 550 again. Each time TAC 550 is run,it applies the local model. At this time, the local model has beenupdated with the positive examples (e.g., from a single portion which,in one embodiment, can have only a single line). However, the localmodel has not yet seen a negative example.

FIG. 4 is a flow chart illustrating an example of a method 400 fortraining a local model with a negative example when TAC 550 is run. Insome embodiments, referring to FIGS. 4 and 5B, method 400 may comprisedetermining what data points are to be extracted from table 535 (401).This determination may be performed by the table auto-completionalgorithm utilizing the local model which has been updated with thepositive examples (including the cell model, the line model, and thedocument model that hypothesize, based on a given scenario, what thedata points are and what their positions and relationships are in thetable). The determined data points are automatically extracted fromtable 535 and entered into corresponding database fields (405), as shownin FIG. 5C. With the initial capture (e.g., from a single line or a fewlines in a single portion), automatic capture of the entire table 535may not yet be completely correct.

Through user interface 500 (which can include a validation screen, asshown in FIG. 5C), the user can view both database table 510 and table535 and verify data points automatically extracted by the tableauto-completion algorithm. In this case, portion 560 of table 535, whichis highlighted by the user, has five lines and, using portion 560 as anexample, the local model hypothesized that the next portion (e.g.,portion 570 of table 535) from where next data points can be extracted(e.g., for columns 522, 524) also has five lines. However, asillustrated in FIG. 5D, the user can see that this hypothesis isincorrect and that portion 570 should have four lines instead. Thiserror means that, while data point 572 was correctly automaticallyextracted and automatically entered into database field 536 of column522, data point 574 was incorrectly extracted and entered into databasefield 538 of column 524.

As shown in FIG. 5E, the user can select database field 538 of column524 and provide the correct value (data point 574 c) in database field538. In some cases, this single correction may be enough for the tableauto-completion algorithm to correct itself (through the local model)and complete data extraction from table 535. The number of correctionsmay depend on the complexity of the table. Referring to FIG. 4, method400 may further including receiving the correction (410) and correct thelocal model with the user-provided correction. As described above, themachine implementing the table auto-completion algorithm can learn fromeach interaction with the user (e.g., a correction in a second line orsecond portion) and improve itself. For example, if the user deletes asuggested line, the machine implementing the table auto-completionalgorithm can learn on the fly that this type of data is undesired anddelete all the subsequent lines of the same type of data. This minimizesthe number of table lines in need of manual capture (i.e., the logicalminimum needed to grasp the user's intensions). The local model,therefore, can be a very useful tool to aid manual capture.

In this case, the machine learns a negative example and stores thisknowledge in the local model. As illustrated in FIG. 4, method 400 mayloop back so the machine can, using the knowledge thus learned,automatically recalculate data points that should be extracted (401) andautomatically updates, on the fly, the database fields where necessary(405). That is, outcome from the automatic table data extraction canalready be improved after only one manual correction. Further, in somecases, manual capture can be reduced to a single manual correction.

In the example of FIG. 5E, table 535 is quite complex (for instance,with varying numbers of lines and inconsistent line distances). The usercan see that data point 584 in portion 580 of table 535 was alsoincorrectly extracted and entered into database field 548 of column 524.As before, the user can select database field 548 of column 524 andprovide the correct value (data point 584 c) in database field 548, asshown in FIG. 5F.

As illustrated in FIG. 4, each time a correction is made, the machineimplementing the table auto-completion algorithm (which includes method400) can learn from that correction, automatically correct its localmodel, recalculate data points in table 535, extract them from table535, and correspondingly update database table 510 with the recalculateddata points thus extracted from table 535. The user can scroll down andverify whether the updated database table 510 still contains any error.

This process can repeat until there are no more corrections and the endof table 535 is reached (420). FIG. 5F shows the last error close to theend of table 535 being corrected in database field 558 of column 524 fordata points 595, 594 of portion 590 of table 535.

The local model and global model discussed above (e.g., local model 262and global model 264) represent two different types of input for thiscontinuous and self-adaptive machine learning. As described above, themachine can learn from interaction with users (through local models,referred to as local learning), as well as from previously processeddocuments (through global models, referred to as global learning). Eachglobal model can be trained and tested on a server machine usingdocuments (of a certain type and layout) that have been processed on theserver side. Knowledge gained from either the client slide or the servercan be used to improve both the local models as well as the globalmodels.

For example, referring to FIG. 4, when the table extraction iscompleted, the client module may send the updated local model to theserver module (which, in one embodiment, runs on subsystem 150). Theserver module may update the global model (for the same document type)utilizing the local model. The global model thus updated can then beutilized by the table auto-completion algorithm in a backend documentprocessing process to automatically determine data points from multipledocuments, automatically extract the data points thus determined, andpopulate a database with the data point thus extracted. In this way, theserver module executing on the server machine can leverage the learnedknowledge from the local model in performing table extraction withrespect to a particular document type and layout to improve the globalmodel accordingly and utilize the improved global model to performautomatic extraction of table information from a mass amount (e.g.,hundreds, thousands, and tens of thousands, etc.) of documents of thesame document type and layout and automatically enter the tableinformation thus extracted from the documents into database fields. Theknowledge gained on the client side through the local model cancontribute to speeding up the automation of data extraction by theserver model on the server side.

Likewise, in some embodiments, a local model can leverage the settingsof a global model to construct an initial hypothesis and refine thehypothesis through user interaction. Once trained, a local model (and aglobal model) can automatically and accurately extract table iteminformation without human intervention, an example of which is shown inFIGS. 6A-6B.

FIG. 6A depicts a diagrammatic representation of a user interface 600 ofan application 620. Similar to application 520 discussed above,application 620 may implement a client module of a table auto-completionalgorithm. In the example of FIG. 6A, data points have already beenautomatically extracted from table 635 of document image 630 and enteredinto database fields of columns 622, 624 of database table 610. As shownin FIG. 6B, a user can view table 635 and verify results of theautomatic table extraction. In this example, after the local model istrained once on a document of the same type, the table auto-completionalgorithm is able to completely, automatically, and correctly extractall the data points from another document of the same type and nocorrection is necessary.

Skilled artisans appreciate that the interfaces shown in FIGS. 5A-6B areexemplary for the purpose of illustration and not of limitation and thata user interface of a bipartite application disclosed herein can beconfigured in many ways, for instance, through settings shown in FIGS.7A-7B. In the example of FIGS. 7A-7B, application 720 (which can besimilar to applications 520, 620 described above) includes a settingsfunction 700. In some embodiments, a user can use settings function 700to configure capture parameters that will be used in the tableextraction. For example, the user can configure how many columns of dataare to be captured from a document, what each column is to be called,what type of data each column is to capture, etc. In this example, theuser only wants to capture two columns (elements 722, 724) and namedthem “Reference” and “Table.” These names can be given by the user tothe table auto-completion algorithm as a scenario (which, in oneembodiment, represents a custom project). In practice, most documentscome with defined scenarios known to the algorithm beforehand (however,the number of layouts is almost infinite, which contributes to thedifficulty of automated table extraction). Users can use the userinterface to customize document types and scenarios. Once theuser-configured settings are applied (through button 722 shown in FIG.7B), application 720 is operable to render a database table with theuser-configured settings and display it to the user (e.g., as columns522, 524 shown in FIGS. 5A-5F or columns 622, 624 shown in FIGS. 6A-6B).

Embodiments disclosed here can be particularly useful for large, complextables (e.g., have high complexity, high variants, different frompreviously seen tables). There are three aspects of complexity that mustbe considered: the characters of the variants within a table from oneline to another line; the variants from one document to the nextdocument of the same template (e.g., if the invoices from the samebusiness partner, same vendor, from document to document, differentitems, different number of items, different number of pages) for onedocument template; and the variants from one document template toanother template and the number of document templates. For instance, ifan invoice application has invoices from 10,000 vendors across allindustries across all countries, there's another type of variantsbetween the layouts (layout templates) as compared to a company thatonly has 600 vendors in one industry.

Variants in these dimensions are relevant in calculating how manytraining would be needed, how complex is the task that the system (e.g.,subsystem 150) should solve ultimately. In a straightforward case, a fewlayout templates with low variants from document to document, it cantake only a few minutes to train on a few documents and the system canperform automatic capture on documents based on the training. On theother end of the spectrum can be a huge number of documents with veryhigh variants from document to document.

Complex tables with high variants are difficult for automated tableextraction because even the best, currently existing extractionalgorithms lack the ability to learn from the ever changing world andthus still require manual corrections. Further, complex tables tend tobe voluminous and long (e.g., 10 pages, 50 pages, 100 pages) which makesit very hard to capture manually. Thus, even in manual corrections,automatic support is highly desirable.

To greatly enhance the speed and quality of manual data capture ofcomplex tables and increase the rate of completely extracting complextables automatically, embodiments disclosed herein combine best of twoworlds. The global model has rich, but potentially imprecise orconflicting information from past experience. The local model haslimited, but more specific and precise information from manualcorrection of a document. By combining local and global models, theimprecise or conflicting information in the global model can be improvedwith the more specific and precise information from the local model.Likewise, the local model can benefit from the rich information in theglobal model and create a better initial hypothesis so that the lengthof training may be shortened the next time it encounters a new documenttype (or a new layout or type of table with new kinds of columns thathave not been seen by the table auto-completion algorithm before) andstarts from scratch. The process of learning and training is integrated,on the fly, no specific training process is needed: a machineimplementing the table auto-completion algorithm learns while doing thework. The specific knowledge (table recognition) can be applied to adocument more than once, since the table can appear several times in onedocument. In this way, humans would not have to do a lot of manualreviews and corrections and table extraction can be performedefficiently, adaptively, and fast. If a document has a lot of pages andthousands of items, the improvements in table extraction automationprovided by embodiments disclosed herein can be significant.

FIG. 8 illustrates an exemplary architecture for enterprise computingenvironment 800 that includes network 814 that can be bi-directionallycoupled to user computer 812, enterprise computer 815, and servercomputer 816. Server computer 816 can be bi-directionally coupled todatabase 818. Network 814 may represent a combination of internal andexternal networks that enterprise computing environment 800 may utilizefor various types of network communications known to those skilled inthe art.

For the purpose of illustration, a single system is shown for each ofuser computer 812, enterprise computer 815, and server computer 816.However, within each of user computer 812, enterprise computer 815, andserver computer 816, a plurality of computers (not shown) may beinterconnected to each other over network 814. For example, a pluralityof user computers 812 and a plurality of enterprise computers 815 may becoupled to network 814. User computers 812 may run a client module of abipartite application disclosed herein. Server computer 816 may run acapture center disclosed herein, including a server module of thebipartite application. Enterprise computers 815 may run a computingfacility that utilizes outputs provided by the capture center.

User computer 812 can include central processing unit (“CPU”) 820,read-only memory (“ROM”) 822, random access memory (“RAM”) 824, harddrive (“HD”) or storage memory 826, and input/output device(s) (“I/O”)828. I/O 828 can include a keyboard, monitor, printer, electronicpointing device (e.g., mouse, trackball, stylus, etc.), or the like.User computer 812 can include a desktop computer, a laptop computer, apersonal digital assistant, a cellular phone, or nearly any devicecapable of communicating over a network. Enterprise computer 815 may besimilar to user computer 812 and can comprise CPU 850, ROM 852, RAM 854,HD 856, and I/O 858.

Likewise, server computer 816 may include CPU 860, ROM 862, RAM 864, HD866, and I/O 868. Server computer 816 may include one or more backendsystems employed by an enterprise to process information in enterprisecomputing environment 800. Processed information can be stored in adatabase management system such as database 818. Many other alternativeconfigurations are possible and known to skilled artisans.

Each of the computers in FIG. 8 may have more than one CPU, ROM, RAM,HD, I/O, or other hardware components. For the sake of brevity, eachcomputer is illustrated as having one of each of the hardwarecomponents, even if more than one is used. Each of computers 812, 815,and 816 is an example of a data processing system. ROM 822, 852, and862; RAM 824, 854, and 864; HD 826, 856, and 866; and database 818 caninclude media that can be read by CPU 820, 850, or 860. Therefore, thesetypes of memories include non-transitory computer-readable storagemedia. These memories may be internal or external to computers 812, 815,or 816.

Portions of the methods described herein may be implemented in suitablesoftware code that may reside within ROM 822, 852, or 862; RAM 824, 854,or 864; or HD 826, 856, or 866. In addition to those types of memories,the instructions in an embodiment disclosed herein may be contained on adata storage device with a different computer-readable storage medium,such as a hard disk. Alternatively, the instructions may be stored assoftware code elements on a data storage array, magnetic tape, floppydiskette, optical storage device, or other appropriate data processingsystem readable medium or storage device.

Those skilled in the relevant art will appreciate that the invention canbe implemented or practiced with other computer system configurations,including without limitation multi-processor systems, network devices,mini-computers, mainframe computers, data processors, and the like. Theinvention can be embodied in a computer, or a special purpose computeror data processor that is specifically programmed, configured, orconstructed to perform the functions described in detail herein. Theinvention can also be employed in distributed computing environments,where tasks or modules are performed by remote processing devices, whichare linked through a communications network such as a local area network(LAN), wide area network (WAN), and/or the Internet. In a distributedcomputing environment, program modules or subroutines may be located inboth local and remote memory storage devices. These program modules orsubroutines may, for example, be stored or distributed oncomputer-readable media, including magnetic and optically readable andremovable computer discs, stored as firmware in chips, as well asdistributed electronically over the Internet or over other networks(including wireless networks). Example chips may include ElectricallyErasable Programmable Read-Only Memory (EEPROM) chips. Embodimentsdiscussed herein can be implemented in suitable instructions that mayreside on a non-transitory computer-readable medium, hardware circuitryor the like, or any combination and that may be translatable by one ormore server machines. Examples of a non-transitory computer-readablemedium are provided below in this disclosure.

ROM, RAM, and HD are computer memories for storing computer-executableinstructions executable by the CPU or capable of being compiled orinterpreted to be executable by the CPU. Suitable computer-executableinstructions may reside on a computer-readable medium (e.g., ROM, RAM,and/or HD), hardware circuitry or the like, or any combination thereof.Within this disclosure, the term “computer-readable medium” is notlimited to ROM, RAM, and HD and can include any type of data storagemedium that can be read by a processor. Examples of computer-readablestorage media can include, but are not limited to, volatile andnon-volatile computer memories and storage devices such as random accessmemories, read-only memories, hard drives, data cartridges, directaccess storage device arrays, magnetic tapes, floppy diskettes, flashmemory drives, optical data storage devices, compact-disc read-onlymemories, and other appropriate computer memories and data storagedevices. Thus, a computer-readable medium may refer to a data cartridge,a data backup magnetic tape, a floppy diskette, a flash memory drive, anoptical data storage drive, a CD-ROM, ROM, RAM, HD, or the like.

The processes described herein may be implemented in suitablecomputer-executable instructions that may reside on a computer-readablemedium (for example, a disk, CD-ROM, a memory, etc.). Alternatively, thecomputer-executable instructions may be stored as software codecomponents on a direct access storage device array, magnetic tape,floppy diskette, optical storage device, or other appropriatecomputer-readable medium or storage device.

Any suitable programming language can be used to implement the routines,methods or programs of embodiments of the invention described herein,including C, C++, Java, JavaScript, HTML, or any other programming orscripting code, etc. Other software/hardware/network architectures maybe used. For example, the functions of the disclosed embodiments may beimplemented on one computer or shared/distributed among two or morecomputers in or across a network. Communications between computersimplementing embodiments can be accomplished using any electronic,optical, radio frequency signals, or other suitable methods and tools ofcommunication in compliance with known network protocols.

Different programming techniques can be employed such as procedural orobject oriented. Any particular routine can execute on a single computerprocessing device or multiple computer processing devices, a singlecomputer processor or multiple computer processors. Data may be storedin a single storage medium or distributed through multiple storagemediums, and may reside in a single database or multiple databases (orother data storage techniques). Although the steps, operations, orcomputations may be presented in a specific order, this order may bechanged in different embodiments. In some embodiments, to the extentmultiple steps are shown as sequential in this specification, somecombination of such steps in alternative embodiments may be performed atthe same time. The sequence of operations described herein can beinterrupted, suspended, or otherwise controlled by another process, suchas an operating system, kernel, etc. The routines can operate in anoperating system environment or as stand-alone routines. Functions,routines, methods, steps, and operations described herein can beperformed in hardware, software, firmware, or any combination thereof.

Embodiments described herein can be implemented in the form of controllogic in software or hardware or a combination of both. The controllogic may be stored in an information storage medium, such as anon-transitory computer-readable medium, as a plurality of instructionsadapted to direct an information processing device to perform a set ofsteps disclosed in the various embodiments. Based on the disclosure andteachings provided herein, a person of ordinary skill in the art willappreciate other ways and/or methods to implement the invention.

It is also within the spirit and scope of the invention to implement insoftware programming or code an of the steps, operations, methods,routines or portions thereof described herein, where such softwareprogramming or code can be stored in a computer-readable medium and canbe operated on by a processor to permit a computer to perform any of thesteps, operations, methods, routines or portions thereof describedherein. The invention may be implemented by using software programmingor code in one or more digital computers, by using application specificintegrated circuits, programmable logic devices, field programmable gatearrays, optical, chemical, biological, quantum or nanoengineeredsystems, components and mechanisms may be used. In general, thefunctions of the invention can be achieved in many ways. For example,distributed, or networked systems, components, and circuits can be used.In another example, communication or transfer (or otherwise moving fromone place to another) of data may be wired, wireless, or by any othermeans.

A “computer-readable medium” may be any medium that can contain, store,communicate, propagate, or transport the program for use by or inconnection with the instruction execution system, apparatus, system ordevice. The computer-readable medium can be, by way of example only butnot by limitation, an electronic, magnetic, optical, electromagnetic,infrared, or semiconductor system, apparatus, system, device,propagation medium, or computer memory. Such computer-readable mediumshall generally be machine-readable and include software programming orcode that can be human readable (e.g., source code) or machine readable(e.g., object code). Examples of non-transitory computer-readable mediacan include random access memories, read-only memories, hard drives,data cartridges, magnetic tapes, floppy diskettes, flash memory drives,optical data storage devices, compact-disc read-only memories, and otherappropriate computer memories and data storage devices. In anillustrative embodiment, some or all of the software components mayreside on a single server computer or on any combination of separateserver computers. As one skilled in the art can appreciate, a computerprogram product implementing an embodiment disclosed herein may compriseone or more non-transitory computer-readable media storing computerinstructions translatable by one or more processors in a computingenvironment.

A “processor” includes any, hardware system, mechanism or component thatprocesses data, signals or other information. A processor can include asystem with a central processing unit, multiple processing units,dedicated circuitry for achieving functionality, or other systems.Processing need not be limited to a geographic location, or havetemporal limitations. For example, a processor can perform its functionsin “real-time,” “offline,” in a “batch mode,” etc. Portions ofprocessing can be performed at different times and at differentlocations, by different (or the same) processing systems.

As used herein, the terms “comprises,” “comprising,” “includes,”“including,” “has,” “having,” or any other variation thereof, areintended to cover a non-exclusive inclusion. For example, a process,product, article, or apparatus that comprises a list of elements is notnecessarily limited only those elements but may include other elementsnot expressly listed or inherent to such process, product, article, orapparatus.

Furthermore, the term “or” as used herein is generally intended to mean“and/or” unless otherwise indicated. For example, a condition A or B issatisfied by any one of the following: A is true (or present) and B isfalse (or not present), A is false (or not present) and B is true (orpresent), and both A and B are true (or present). As used herein, a termpreceded by “a” or “an” (and “the” when antecedent basis is “a” or “an”)includes both singular and plural of such term, unless clearly indicatedotherwise (i.e., that the reference “a” or “an” clearly indicates onlythe singular or only the plural). Also, as used in the descriptionherein, the meaning of “in” includes “in” and “on” unless the contextclearly dictates otherwise.

It will also be appreciated that one or more of the elements depicted inthe drawings/figures can also be implemented in a more separated orintegrated manner, or even removed or rendered as inoperable in certaincases, as is useful in accordance with a particular application.Additionally, any signal arrows in the drawings/figures should beconsidered only as exemplary, and not limiting, unless otherwisespecifically noted. The scope of the disclosure should be determined bythe following claims and their legal equivalents.

1. A method, comprising: displaying, by a user device, a user interfacehaving a database table and an image, the database table having aplurality of columns, the image containing a table, the user interfaceincluding a user interface element for automatic completion of thedatabase table; responsive to a user selecting the user interfaceelement, performing, by the user device: analyzing a portion of thetable highlighted by the user on the user interface, the portion of thetable highlighted by the user on the user interface defining initialcoordinates on the user interface; determining a data point for eachcolumn of the database table using the initial coordinates;automatically extracting data points thus determined from the tableutilizing a machine learning model; entering the data pointsautomatically extracted from the table into the plurality of columns ofthe database table; and storing information about the data points in themachine learning model as positive examples for continuous andself-adaptive learning; determining, by the user device utilizing thepositive examples in the machine learning model, a plurality ofadditional data points in the table; automatically extracting, by theuser device, the plurality of additional data points from the tableutilizing the machine learning model; entering, by the user device, theplurality of additional data points extracted from the table into theplurality of columns of the database table; receiving, by the userdevice, a correction to a data point of the plurality of additional datapoints automatically extracted from the table utilizing the machinelearning model; correcting, by the user device, the machine learningmodel utilizing the correction to the data point, wherein the data pointis included in the machine learning model as a negative example; andautomatically continuously extracting, by the user device, tableinformation from the table utilizing the positive and negative examplesin the machine learning until extraction of the table information fromthe table is completed and the table information extracted from thetable is entered into the database table.
 2. The method according toclaim 1, wherein the machine learning model is trained withuser-provided positive examples to recognize a table layout.
 3. Themethod according to claim 1, wherein the image comprises a scanned imageof a document containing the table.
 4. The method according to claim 3,wherein the table contains coded text generated from the scanned imageutilizing optical character recognition.
 5. The method according toclaim 1, wherein the table comprises a plurality of items, each item ofthe plurality of items containing multiple lines or rows.
 6. The methodaccording to claim 1, wherein the machine learning model comprises acell model defining properties of cells of a given column, a line modeldefining a number of cells per line and transition there-between, and adocument model defining line distances and a number of lines perdocument.
 7. The method according to claim 6, wherein the automaticallyextracting utilizes the cell model, the line model, and the documentmodel to extract the plurality of additional data points from the table.8. The method according to claim 1, further comprising: communicatingthe machine learning model from the user device to a server computerhaving a global machine learning model for table auto-completion;updating the global machine learning model for table auto-completionutilizing the machine learning model from the user device; automaticallyextracting table information from a plurality of documents, theautomatically extracting performed by the server computer utilizing theglobal machine learning model for table auto-completion; andautomatically entering into database fields the table informationextracted from the plurality of documents utilizing the global machinelearning model for table auto-completion, the automatically enteringperformed by the server computer.
 9. The method according to claim 8,wherein the global machine learning model comprises a cell modeldefining properties of cells of a given column, a line model defining anumber of cells per line and transition there-between, and a documentmodel defining line distances and a number of lines per document. 10.The method according to claim 9, wherein the automatically extractingcomprises extracting the table information from the plurality ofdocuments utilizing the cell model, the line model, and the documentmodel.
 11. A system, comprising: a processor; a non-transitorycomputer-readable medium; and stored instructions translatable by theprocessor to perform: displaying a user interface having a databasetable and an image, the database table having a plurality of columns,the image containing a table, the user interface including a userinterface element for automatic completion of the database table;responsive to a user selecting the user interface element, performing:analyzing a portion of the table highlighted by the user on the userinterface, the portion of the table highlighted by the user on the userinterface defining initial coordinates on the user interface;determining a data point for each column of the database table using theinitial coordinates; automatically extracting data points thusdetermined from the table utilizing a machine learning model; enteringthe data points automatically extracted from the table into theplurality of columns of the database table; and storing informationabout the data points in the machine learning model as positive examplesfor continuous and self-adaptive learning; determining, utilizing thepositive examples in the machine learning model, a plurality ofadditional data points in the table; automatically extracting theplurality of additional data points from the table utilizing the machinelearning model; entering the plurality of additional data pointsextracted from the table into the plurality of columns of the databasetable; receiving a correction to a data point of the plurality ofadditional data points automatically extracted from the table utilizingthe machine learning model; correcting the machine learning modelutilizing the correction to the data point, wherein the data point isincluded in the machine learning model as a negative example; andautomatically continuously extracting table information from the tableutilizing the positive and negative examples in the machine learninguntil extraction of the table information from the table is completedand the table information extracted from the table is entered into thedatabase table.
 12. The system of claim 11, wherein the machine learningmodel is trained with user-provided positive examples to recognize atable layout.
 13. The system of claim 11, wherein the image comprises ascanned image of a document containing the table.
 14. The system ofclaim 13, wherein the table contains coded text generated from thescanned image utilizing optical character recognition.
 15. The system ofclaim 11, wherein the table comprises a plurality of items, each item ofthe plurality of items containing multiple lines or rows.
 16. The systemof claim 11, wherein the machine learning model comprises a cell modeldefining properties of cells of a given column, a line model defining anumber of cells per line and transition therebetween, and a documentmodel defining line distances and a number of lines per document. 17.The system of claim 16, wherein the automatically extracting utilizesthe cell model, the line model, and the document model to extract theplurality of additional data points from the table.
 18. The system ofclaim 11, wherein the stored instructions are further translatable bythe processor to perform: communicating the machine learning model to aserver computer having a global machine learning model for tableauto-completion, wherein the global machine learning model for tableauto-completion is updated utilizing the machine learning model, theglobal machine learning model configured for automatically extractingtable information from a plurality of documents such that the tableinformation extracted from the plurality of documents is automaticallyentered into database fields.
 19. The system of claim 18, wherein theglobal machine learning model comprises a cell model defining propertiesof cells of a given column, a line model defining a number of cells perline and transition there-between, and a document model defining linedistances and a number of lines per document.
 20. The system of claim19, wherein the table information is extracted from the plurality ofdocuments utilizing the cell model, the line model, and the documentmodel.